	<?php
	
	if (file_exists("online.html"))
	{
		if(filesize("online.html") > 2048)
		{
			unlink("online.html");
		}
	}
	
	if($_GET['who'])
	{
		$botname = $_GET['who'];
		
		$date = new DateTime();
		$result = $date->format('H:i:s d-m-Y');
		
		$dane = "$result - $botname <br />";
		
		$fp = fopen("online.html", "a+");
		fclose($fp); 
		
		$file_data = $dane;
		$file_data .= file_get_contents('online.html');
		file_put_contents('online.html', $file_data);
	}
	?>